<?php
/**
 * Created by .
 * User: 小涛
 * Date: 2018/3/26
 * Time: 15:03
 */

namespace app\admin\controller;

use app\admin\model\City as CityModel;
use think\Request;

/**
 * Class City 中国省市区地址联动表
 * @package app\admin\controller
 */
class City extends Admin
{
    public function City(){
        $request = Request::instance();
        $data = $request -> param();
        $id = 0;
        if(array_key_exists("id",$data)){
            $id = $data["id"];
        }
        if($request -> isPost()){
            return CityModel::CityByTid($id);
        }
        return CityModel::CityByTid($id);
    }
}